package com.mayn.job;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.mayn.action.CainiaoAction;


@DisallowConcurrentExecution
public class updateCainiaoStockJob implements Job{
	
	private static final Logger LOG = LoggerFactory.getLogger(updateCainiaoStockJob.class);
	public void execute(JobExecutionContext context) throws JobExecutionException {
		long starTime=System.currentTimeMillis();
		LOG.info("JobStart--开始执行");
		
		CainiaoAction.update();
		
		long endTime=System.currentTimeMillis();
		long Time=endTime-starTime;
		LOG.info("JobEnd--执行结束,耗时" + Time/1000 + "秒");
	}

}
